package com.jifen.user.vo;

import com.jifen.config.Global;
import org.apache.commons.lang3.StringUtils;

public class MchVo {

    private Integer id;

    private Integer jifenGiveRatio;

    private Double jifen;

    private String head;

    private String phone;

    private String address;

    private String introduce;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getJifenGiveRatio() {
        return jifenGiveRatio;
    }

    public void setJifenGiveRatio(Integer jifenGiveRatio) {
        this.jifenGiveRatio = jifenGiveRatio;
    }

    public Double getJifen() {
        return jifen;
    }

    public void setJifen(Double jifen) {
        this.jifen = jifen;
    }

    public String getHead() {
        if(StringUtils.isNotBlank(head)){
            return Global.getConfig("cdnUrl") + head;
        }
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }
}
